<?php /*a:2:{s:67:"/Applications/MAMP/htdocs/application/index/view/othvideo/play.html";i:1591462136;s:58:"/Applications/MAMP/htdocs/application/index/view/base.html";i:1591464705;}*/ ?>
<!doctype html>
<html lang="zn-en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="/../static/index/lib/css/bootstrap.css"  crossorigin="anonymous">
    <link rel="stylesheet" href="/../static/index/css/index.css">
    <link href="/../static/layui/css/layui.css" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"  crossorigin="anonymous"></script>
    <script src="/../static/index/lib/js/bootstrap.bundle.js" crossorigin="anonymous"></script>
    <script src="/../static/index/lib/js/bootstrap.js"  crossorigin="anonymous"></script>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" src="/../static/layui/layui.all.js"></script>
    <title>首页</title>
</head>
<body>
<header class="header">
    <div class="logo">
        <div class="btitle d-inline-block p-1 pb-1">
            <img src="/../static/index/images/logo.png" alt="">
        </div>
        <div class="login">
            <i class="iconfont">&#xe7a5;</i>
            <?php if(empty(session('user_id'))): ?>
            <a href="<?php echo url('index/login/login'); ?>">登录</a>/<a href="<?php echo url('index/login/reg'); ?>">注册</a>
            <?php else: ?>
            <a href="<?php echo url('index/center/index'); ?>">个人中心</a>/ <a id="layout">退出</a>
            <?php endif; ?>

        </div>
    </div>

</header>
<nav>
    <ul>
        <li >
            <a class="" href="<?php echo url('index/index/index'); ?>">首页</a>
        </li>
        <li >
            <a class="" href="<?php echo url('index/article/index'); ?>">动态咨询</a>
        </li>
        <li >
            <a class="" href="<?php echo url('index/project/index'); ?>">视频课程</a>
        </li>
        <li >
            <a class="" href="<?php echo url('index/live/index'); ?>">在线直播</a>
        </li>
        <li>
            <a class="" href="<?php echo url('index/book/index'); ?>">图书商城</a>
        </li>
        <li>
            <a class="" href="<?php echo url('index/othvideo/index'); ?>">短视频专区</a>
        </li>
    </ul>
</nav>
<div class="main-content">

<link href="https://vjs.zencdn.net/7.8.2/video-js.css" rel="stylesheet" />
<script src="https://vjs.zencdn.net/7.8.2/video.js"></script>
<div class="video-main">
    <div class="othvideo-play-tit">
        <h3><?php echo htmlentities($othvideo['othvideo_name']); ?></h3>
    </div>
    <video
            id="my-video"
            class="video-js vjs-big-play-centered"
            controls
            preload="auto"
            width="1200"
            height="460"
            poster="<?php echo htmlentities($othvideo['othvideo_thumb']); ?>"
            data-setup="{}"
    >
        <source src="<?php echo htmlentities($othvideo['othvideo_url']); ?>" />
    </video>
</div>


</div>
<footer>
    <div class="copyright">
        Copyright © 2010-2020 MHK国语在线推广学习平台 All Rights Reserved<br>
        陕ICP备19016245号-1
    </div>
</footer>


<script>
    layui.use('layer', function(){
        var layer = layui.layer;
    });
    $('#layout').click(function () {
            $.post("<?php echo url('index/login/layout'); ?>","",function (res) {
                if(res.code){
                    layer.msg("退出成功",{icon:1});
                    setTimeout(function () {
                        window.location.href="<?php echo url('index/index/index'); ?>"
                    },500)
                }else {
                    layer.msg(res.msg,{icon:2});
                }
            })
    })
</script>
</body>
</html>